﻿using System;
using Microsoft.Xna.Framework;
using Narwhunderful.Aphelia.Framework;
using Narwhunderful.Aphelia.Framework.Input.Keyboard;

namespace Narwhunderful.Aphelia.Framework.Input
{

    public class InputManager : UpdatableComponent
    {

        KeyboardManager _keyboardManager;
        public KeyboardManager KeyboardManager
        {
            get
            {
                return _keyboardManager;
            }
        }

        public InputManager(Game game)
            : base(game)
        {
            _keyboardManager = new KeyboardManager(game);
            base.AlwaysNeedsUpdate = true;
        }

        #region IUpdatableComponent

        protected override void InternalUpdate(GameTime gameTime)
        {
            _keyboardManager.Update(gameTime);
        }

        #endregion

    }

}
